package com.flute.haflute.monitor;

import java.io.Serializable;

public class JvmInfo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Long freeMemory;
	public Long totalMemory;
	public Long maxMemory;
	
	public JvmInfo(){
		this.setFreeMemory(Runtime.getRuntime().freeMemory()/(1024*1024));
		this.setTotalMemory(Runtime.getRuntime().totalMemory()/(1024*1024));
		this.setMaxMemory(Runtime.getRuntime().maxMemory());
	}
	
	
	public Long getFreeMemory() {
		return freeMemory;
	}
	public void setFreeMemory(Long freeMemory) {
		this.freeMemory = freeMemory;
	}
	public Long getTotalMemory() {
		return totalMemory;
	}
	public void setTotalMemory(Long totalMemory) {
		this.totalMemory = totalMemory;
	}
	public Long getMaxMemory() {
		return maxMemory;
	}
	public void setMaxMemory(Long maxMemory) {
		this.maxMemory = maxMemory;
	}

}
